<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="com.edu.entity.*"%>
<%@ page import="com.edu.service.*"%>
<%
    request.setCharacterEncoding("UTF-8");
    int id=Integer.parseInt(request.getParameter("sid"));
    String name=request.getParameter("sname");
    int age=Integer.parseInt(request.getParameter("sage"));
    String sex=request.getParameter("ssex");
    Student stu=new Student();
    stu.setId(id);
    stu.setName(name);
    stu.setAge(age);
    stu.setSex(sex);
    Service si=new Service();
    si.doResult(stu);
    response.sendRedirect("dl.jsp");
%>
    